package com.company.indicationshots.util;
//此类是字符串中每两位加入一个空格，未用到，可以忽略
public class InsertSpaceEveryTwo {
    public static String insertSpaceEveryTwo(String s) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < s.length(); i++) {
            sb.append(s.charAt(i));
            if ((i + 1) % 2 == 0 && i != s.length() - 1) {
                sb.append(' ');
            }
        }
        return sb.toString();
    }
}
